import request from '@/api/request'

function orderList(params) {
  return request({
    url: '/api/leju/admin/order/list',
    method: 'get',
    params
  })
}

function orderDetail(params) {
  return request({
    url: '/api/leju/admin/order/detail',
    method: 'get',
    params
  })
}
// 用户信息
function orderUserInfo(params) {
  return request({
    url: '/api/leju/admin/order/orderUserInfo',
    method: 'get',
    params
  })
}
// 已发货
function sendDone(params) {
  return request({
    url: '/api/leju/admin/order/sendDone',
    method: 'post',
    params
  })
}
// 已收货
function closeOrder(params) {
  return request({
    url: '/api/leju/admin/order/closeOrder',
    method: 'get',
    params
  })
}
export {
  orderList, orderDetail, orderUserInfo, sendDone, closeOrder
}
